<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%--http://java.sun.com/jstl/core 使用该库时报错--%>
<%--According to TLD or attribute directive in tag file, attribute items does not accept any expressions --%>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
	content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>所有申请</title>
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/pages/vendor/simple-line-icons/css/simple-line-icons.css">
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/pages/vendor/font-awesome/css/fontawesome-all.min.css">
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/pages/css/styles.css">
</head>
<body class="sidebar-fixed header-fixed">
	<div class="page-wrapper">
		<nav class="navbar page-header">
			<a href="#"
				class="btn btn-link sidebar-mobile-toggle d-md-none mr-auto"> <i
				class="fa fa-bars"></i>
			</a> <a class="navbar-brand" href="#"> <img
				src="${pageContext.request.contextPath}/pages/imgs/logo.png"
				alt="logo">
			</a> <a href="#" class="btn btn-link sidebar-toggle d-md-down-none">
				<i class="fa fa-bars"></i>
			</a>

			<ul class="navbar-nav ml-auto">


				<li class="nav-item dropdown"><a
					class="nav-link dropdown-toggle" href="#" role="button"
					data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
						<img
						src="${pageContext.request.contextPath}/pages/imgs/avatar-1.png"
						class="avatar avatar-sm" alt="logo"> <span
						class="small ml-1 d-md-down-none">${sessionScope.SESSION_NAME.name}</span>
				</a></li>
			</ul>
		</nav>

		<div class="main-container">
			 <div class="sidebar">
            <nav class="sidebar-nav">
                <ul class="nav">
                    <li class="nav-title">导航</li>

                    <li class="nav-item">
                        <a href="${pageContext.request.contextPath}/pages/index_admin.jsp" class="nav-link active">
                            <i class="icon icon-speedometer"></i> 首页
                        </a>
                    </li>

                    <li class="nav-item nav-dropdown">
                        <a href="#" class="nav-link nav-dropdown-toggle">
                            <i class="icon icon-target"></i> 学生管理<i class="fa fa-caret-left"></i>
                        </a>

                        <ul class="nav-dropdown-items">
                            <li class="nav-item">
                                <a href="${pageContext.request.contextPath}/pages/insertStudent.jsp" class="nav-link">
                                    <i class="icon icon-target"></i> 添加学生</a>
                            </li>

                            <li class="nav-item">
                                <a href="${pageContext.request.contextPath}/pages/deleteStudent.jsp" class="nav-link">
                                    <i class="icon icon-target"></i> 删除学生
                                </a>
                            </li>

                            <li class="nav-item">
                                <a href="${pageContext.request.contextPath}/pages/updateStudent.jsp" class="nav-link">
                                    <i class="icon icon-target"></i> 修改学生信息
                                </a>
                            </li>

                            <li class="nav-item">
                                <a href="${pageContext.request.contextPath}/pages/findStudent.jsp" class="nav-link">
                                    <i class="icon icon-target"></i> 查询学生
                                </a>
                            </li>
                        </ul>
                    </li>

                    <li class="nav-item nav-dropdown">
                        <a href="#" class="nav-link nav-dropdown-toggle">
                            <i class="icon icon-energy"></i>宿舍管理<i class="fa fa-caret-left"></i>
                        </a>

                        <ul class="nav-dropdown-items">
                            <li class="nav-item">
                                <a href="${pageContext.request.contextPath}/pages/insertBuild.jsp" class="nav-link">
                                    <i class="icon icon-energy"></i>添加宿舍
                                </a>
                            </li>

                            <li class="nav-item">
                                <a href="${pageContext.request.contextPath}/pages/deleteDormitory.jsp" class="nav-link">
                                    <i class="icon icon-energy"></i>删除宿舍
                                </a>
                            </li>

                            <li class="nav-item">
                                <a href="${pageContext.request.contextPath}/pages/updateDormitory.jsp" class="nav-link">
                                    <i class="icon icon-energy"></i>更新宿舍
                                </a>
                            </li>

                            <li class="nav-item">
                                <a href="${pageContext.request.contextPath}/pages/findDormitory.jsp" class="nav-link">
                                    <i class="icon icon-energy"></i>查询宿舍
                                </a>
                            </li>
                        </ul>
                    </li>

                    <li class="nav-item nav-dropdown">
                        <a href="#" class="nav-link nav-dropdown-toggle">
                            <i class="icon icon-graph"></i>报修管理 <i class="fa fa-caret-left"></i>
                        </a>

                        <ul class="nav-dropdown-items">
                            <li class="nav-item">
                                <a href="<c:url value="/ManagementServlet?method=getRepairList"/>" class="nav-link">
                                    <i class="icon icon-graph"></i>报修申请
                                </a>
                            </li>
                        </ul>
                    </li>
					
					<li class="nav-item nav-dropdown">
                        <a href="#" class="nav-link nav-dropdown-toggle">
                            <i class="icon icon-graph"></i>报表管理 <i class="fa fa-caret-left"></i>
                        </a>

                        <ul class="nav-dropdown-items">
                            <li class="nav-item">
                                <a href="chartjs.html" class="nav-link">
                                    <i class="icon icon-graph"></i>学生报表
                                </a>
                            </li><li class="nav-item">
                                <a href="chartjs.html" class="nav-link">
                                    <i class="icon icon-graph"></i>宿舍报表
                                </a>
                            </li>
							<li class="nav-item">
                                <a href="chartjs.html" class="nav-link">
                                    <i class="icon icon-graph"></i>报修报表
                                </a>
                            </li>
                        </ul>
                    </li>
                    <li class="nav-item">
                        <a href="<c:url value='/ManagementServlet?method=doLogout'/>" class="nav-link">
                            <i class="icon icon-puzzle"></i> 退出系统
                        </a>
                    </li>

                    
                        </ul>
                    </li>
                </ul>
            </nav>
        </div>
			<div class="content">
				<div class="container">
					<div class="row">
						<div class="col-12">
							<div class="card">
								<div class="card-body p-0">
									<div class="row p-5">
										<table border="1">
											<div class="col-md-6 text-left">
												<thead>申请状态变更
												</thead>
											</div>
											<div class="col-md-6 text-left">
												<tbody>
													<form action="<c:url value='/ManagementServlet'/>"
														method="post">
														<input type="hidden" name="method" value="updateRepairs" />
														<tr>
															<td>编号</td>
															<td><input name="id" value="${repair.id}"
																readonly="readonly" /></td>
														</tr>
														<tr>
															<td>主题</td>
															<td><input  value="${repair.title}"
																readonly="readonly" /></td>
														</tr>
														<tr>
															<td>详细内容</td>
															<td><input  value="${repair.content}"
																readonly="readonly" /></td>
														</tr>
														<tr>
															<td>状态</td>
															<%--<td><input name="state" value="${repair.state}"/></td> --%>
															<td><select name="state">
																	<option value="待审核">待审核</option>
																	<option value="待处理">待处理</option>
																	<option value="处理中">处理中</option>
																	<option value="已完成">已完成</option>
															</select></td>
														</tr>
														<tr>
															<td>申请房间</td>
															<td><input  value="${repair.dormitory.d_id}栋${repair.dormitory.r_id}"
																readonly="readonly" /></td>
														</tr>
														<tr>
															<td>申请日期</td>
															<td><input value="${date}"
																readonly="readonly" /></td>
														</tr>
														<input type="submit" value="提交修改" />
													</form>


												</tbody>
											</div>
										</table>

										<hr class="my-5">
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<script
		src="${pageContext.request.contextPath}/pages/vendor/jquery/jquery.min.js"></script>
	<script
		src="${pageContext.request.contextPath}/pages/vendor/popper.js/popper.min.js"></script>
	<script
		src="${pageContext.request.contextPath}/pages/vendor/bootstrap/js/bootstrap.min.js"></script>
	<script
		src="${pageContext.request.contextPath}/pages/vendor/chart.js/chart.min.js"></script>
	<script src="${pageContext.request.contextPath}/pages/js/carbon.js"></script>
	<script src="${pageContext.request.contextPath}/pages/js/demo.js"></script>
</body>
</html>
